//
//  XMNetwork+home.h
//  XMJJ_zml
//
//  Created by 丁浩 on 2025/6/10.
//

#import "XMNetwork.h"

NS_ASSUME_NONNULL_BEGIN

@interface XMNetwork (home)

/**
 首页关注数据
 */
- (void)getHomeDataWithType:(NSInteger)type
                       page:(NSString *)pageStr
                  longitude:(NSString *)longitude
                   latitude:(NSString *)latitude
                    success:(void (^)(id responseObject))successBlock
                    failure:(void (^)(NSError *error))failureBlock;
//- (void)getHomeAttentionWithPage:(NSString *)pageStr
//                         success:(void (^)(id responseObject))successBlock
//                         failure:(void (^)(NSError *error))failureBlock;

///**
// 首页推荐
// */
//- (void)getHomeRecommendWith
//
///**
// 首页新发布的见面
// */
//- (void)getNewPubMeetingWithPage:(NSString *)pageStr
//                         success:(void (^)(id responseObject))successBlock
//                         failure:(void (^)(NSError *error))failureBlock;

/**
 见面详情
 */
- (void)getMeetDetailWithServiceId:(NSString *)serviceId
                           success:(void (^)(id responseObject))successBlock
                           failure:(void (^)(NSError *error))failureBlock;

/**
 收藏见面
 */
- (void)collectionMeetWithServiceId:(NSString *)serviceId
                            success:(void (^)(id responseObject))successBlock
                            failure:(void (^)(NSError *error))failureBlock;

/**
 取消收藏
 */
- (void)cancelCollectMeetWithServiceId:(NSString *)serviceId
                               success:(void (^)(id responseObject))successBlock
                               failure:(void (^)(NSError *error))failureBlock;

/**
加入见面箱
 */
- (void)addMeetBoxWithServiceId:(NSString *)serviceId
                        success:(void (^)(id responseObject))successBlock
                        failure:(void (^)(NSError *error))failureBlock;

/**
 创建订单
 */
- (void)creatOrderWithCartIds:(NSString *)cartIds
                    addressId:(NSString *)addressId
                      payType:(NSString *)payType
                      success:(void (^)(id responseObject))successBlock
                      failure:(void (^)(NSError *error))failureBlock;

/**
 获取支付信息
 */
- (void)getPayInfoWithOrderId:(NSString *)orderId
                      success:(void (^)(id responseObject))successBlock
                      failure:(void (^)(NSError *error))failureBlock;

/**
 直接创建订单
 */
- (void)creatOrderWithServiceId:(NSString *)serviceId
                        success:(void (^)(id responseObject))successBlock
                        failure:(void (^)(NSError *error))failureBlock;

/**
 他人个人信息
 */
- (void)getOtherUserInfoWithUserId:(NSString *)userId
                           success:(void (^)(id responseObject))successBlock
                           failure:(void (^)(NSError *error))failureBlock;

/**
 他人的作品
 */
- (void)getOtherVideoWithUserId:(NSString *)userId
                        success:(void (^)(id responseObject))successBlock
                        failure:(void (^)(NSError *error))failureBlock;

/**
 聊天密钥
 */
- (void)getUserSigWithUserId:(NSString *)userId
                     success:(void (^)(id reponseObject))successBlock
                     failure:(void (^)(NSError *error))failureBlock;

/**
 单发单聊消息
 */
- (void)sendMessageWithSender:(NSString *)senderId
                     receiver:(NSString *)receiverId
                      message:(NSString *)message
                      success:(void (^)(id responseObject))successBlock
                      failure:(void (^)(NSError *error))failureBlock;

/**
 获取历史消息
 */
- (void)getHistoryMessageWithSender:(NSString *)senderId
                           receover:(NSString *)receiverId
                         lastMsgKey:(NSString *)lastMsgKey
                            success:(void (^)(id reponseObject))successBlock
                            failure:(void (^)(NSError *error))failureBlock;

/**
 见面包搜索
 */
- (void)meetSearchWithSearchKey:(NSString *)searchKey
                    isAscending:(NSString *)isAscending
                           city:(NSString *)city
                           page:(NSString *)pageStr
                        success:(void (^)(id responseObject))successBlock
                        failure:(void (^)(NSError *error))failureBlock;

@end

NS_ASSUME_NONNULL_END
